<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>我的</title>
    <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
    <style type="text/css">
    	html,body{
    		background-color: white;
    	}
    </style>
</head>

<body>
    <div class="mui-content mine-content">
		<div class="top-color mine_bg">
			<img class="head_img" src="../image/mine_head.png" />
			<img class="welcome" src="../image/welcome.png"/>
			<p class="name" id="userName"></p>
			<p class="login-tips-text">您好，欢迎回来</p>
			<div class="login-out" tapmode onclick="LoginOut()"><i class="loginout"></i>退出登录</div>
			<div class="appVersion" id="appVersion"></div>
			<!--<address>地址：https://www.adbwis.com/</address>-->
		</div>
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script src="../script/mui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../script/common.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	apiready = function() {
		onload();
		api.addEventListener({
            name: 'refersh'
        }, function(ret, err) {
        	if (ret.value.isrefersh == 'yes') {
        		onload();
        	}
        });
	}
	function LoginOut () {
		$api.clearStorage();
		$api.text($api.byId('userName'), '');
		api.openWin({
		    name: 'login',
		    url: './login.html'
		});
	}
	function onload () {
		if ($api.getStorage('partsInfo'))
		$api.text($api.byId('userName'),$api.getStorage('partsInfo').userName+'('+$api.getStorage('partsInfo').loginId+')');

		$api.text($api.byId('appVersion'),"App版本号：1.0.0版本");
	}
</script>

</html>
